Skip to content

fix: add files field to package.json for npm publishing#21

Open
Kubudak90 wants to merge 1 commit intomoltlaunch:mainfrom
Kubudak90:fix/npm-files-field
Open

fix: add files field to package.json for npm publishing#21
Kubudak90 wants to merge 1 commit intomoltlaunch:mainfrom
Kubudak90:fix/npm-files-field

Conversation

@Kubudak90
Copy link

Problem

The package is missing a 'files' field in package.json. This can cause npm to not properly include the built 'dist/' directory when publishing, since:

  1. 'dist/' is listed in .gitignore (so it won't be tracked by git)
  2. Without an explicit 'files' field, npm may not include the built files

Solution

Add a 'files' field to explicitly include:

  • 'dist/' - the compiled output
  • 'LICENSE' - required for MIT license
  • 'README.md' - package documentation

This ensures that when running 'npm publish' after building, all necessary files are included in the published package.

Fixes #1

The package was missing a 'files' field, which could cause npm to not
include the built dist/ directory when publishing. This ensures the
compiled output is properly included in the published package.

Fixes moltlaunch#1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue on install

1 participant